<?php

class Example_Panel extends View
{
	public function Load()
	{
		if (!IS_POSTBACK)
		{
			$this->Controls["nediro"] = "hadi bakam"; 
			$this->Controls["test"] = "sepete ekle"; 
		}
	}

	public function LoadControls()
	{
		//Control:Username
		//Control:Password
	}

	// <input type="submit" id="BasketButton" name="Event:AddBasket" value="Gönder" />
	// sample event method from $_POST["Event:AddBasket"] 
	//

	public function OnEvent_AddBasket()	
	{
		if (is_numeric($this->Controls["nediro"]))
		{
			$this->Controls["response"] = $this->Controls["nediro"]." adet kalem sepete eklendi.<br/>"; 
		}
		else
		{
			$this->Controls["response"] = "Lütfen sayısal değer giriniz!<br/> ";
		}
	}
}

?>
